package com.example.shirodemo.service;

import com.example.shirodemo.dto.ResponseResult;
import com.example.shirodemo.dto.ResponseResultPage;
import com.example.shirodemo.entity.SMenu;
import com.example.shirodemo.entity.SUser;
import java.util.List;
import java.util.Set;

/**
 * @author 绫小路
 * @date 2021/1/10 17:44
 * @description
 */
public interface UserService {

  /**
   * 获取用户信息
   * @param username
   * @return
   */
  SUser getUserByUsername(String username);

  SUser getUserById(Integer id);

  Set<String> getRolesByUsername(String username);

  /**
   * 获取用户菜单
   * @param userId
   * @return
   */
  List<SMenu> getMenuList(Integer userId);

  ResponseResult updatePassword(Integer userId,String password);

  ResponseResult register(String username, String password, String nickname);

}
